package com.unknown.wiki.manager;

import android.app.Activity;
import android.app.Application;
import android.os.Bundle;

public class ActivityManager implements Application.ActivityLifecycleCallbacks {
    private static ActivityManager activityManager;
//    private Stack<Activity> activityStack;

    private ActivityManager() {
//        activityStack = new Stack<>();
    }

    public static void init() {
        activityManager = new ActivityManager();
    }

    public static ActivityManager getInstance() {
        return activityManager;
    }

    @Override
    public void onActivityCreated(Activity activity, Bundle savedInstanceState) {

    }

    @Override
    public void onActivityStarted(Activity activity) {

    }

    @Override
    public void onActivityResumed(Activity activity) {
//        activityStack.add(activity);
    }

    @Override
    public void onActivityPaused(Activity activity) {

    }

    @Override
    public void onActivityStopped(Activity activity) {

    }

    @Override
    public void onActivitySaveInstanceState(Activity activity, Bundle outState) {

    }

    @Override
    public void onActivityDestroyed(Activity activity) {
//        activityStack.remove(activity);
    }
}
